package conch.yaoms;

import java.awt.AWTException;
import java.util.ArrayList;

import org.apache.commons.configuration.ConfigurationException;

import conch.yaoms.jni.MemoryWatcher;
import conch.yaoms.jni.ProcessItem;

public class Main {

	/**
	 * @param args
	 * @throws AWTException 
	 */
	public static void main(String[] args) throws AWTException {

		
		
		/**
		 * 内存监视
		 */
		
		MemoryWatcher watcher = new MemoryWatcher();
		

		BotConfig config = null;
		try {
			config = new BotConfig("config.xml");
		} catch (ConfigurationException e) {
			e.printStackTrace();
		}

		MainFrame vFrame = new MainFrame("波特波特～！！！", watcher);
		
		Bot bot = new Bot(config, vFrame);
		
		vFrame.setBot(bot);
		vFrame.setVisible(true);

		bot.look();
		
		watcher.setProcessId(0);
		
		//0x0C8D7958
		
//		String[] paths = System.getProperty("java.library.path").split(System.getProperty("path.separator"));
//		for (String string : paths) {
//			System.out.println(string);
//		}
//		 System.out.println();
	}

}
